<%@tag pageEncoding="UTF-8"%>
<%@attribute name="page" type="com.github.pagehelper.PageInfo" required="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">
<input type="hidden" name="pageNum" value="${page.pageNum }"/>
<input type="hidden" name="pageSize" value="${page.pageSize }"/>
<input type="hidden" name="totalpage" value="${page.pages }"/>
<ul>
    <li><a>共<font color="red">${page.total}</font>条</a></li>
    <li><input type="number" value="" min="1"  class="txt_page_num" style="width:50px;text-align:center;float:left" placeholder="页码"></li>
    <li style="cursor:pointer;"><a class="btn btn-mini btn-success btn_page_jump">跳转</a></li>
    <c:choose>
        <c:when test="${page.pageNum gt 1}">
		    <li><a href="javascript:void(0);" class="btn_page" data-pagenum="1">首页</a></li>
		    <li><a href="javascript:void(0);" class="btn_page" data-pagenum="${page.prePage}">上页</a></li>
        </c:when>
        <c:otherwise>
        <li><a>首页</a></li>
        <li><a>上页</a></li>
        </c:otherwise>
    </c:choose>
    
    <li><a><font color="#808080">${page.pageNum }</font></a></li>
    
    <c:choose>
        <c:when test="${page.pageNum lt page.pages}">
            <li><a href="javascript:void(0);" class="btn_page" data-pagenum="${page.nextPage}">下页</a></li>
            <li><a href="javascript:void(0);" class="btn_page" data-pagenum="${page.pages}">尾页</a></li>
        </c:when>
        <c:otherwise>
            <li><a>下页</a></li>
            <li><a>尾页</a></li>
        </c:otherwise>
    </c:choose>
    <li><a>第${page.pageNum }页</a></li>
    <li><a>共${page.pages }页</a></li>
    <li>
	
    <select title="显示条数" style="width:60px;float:left;" class="pageSize" >
        <option value="10" ${10 eq page.pageSize ? 'selected':'' } > 10</option>
        <option value="20" ${20 eq page.pageSize ? 'selected':'' } > 20</option>
        <option value="30" ${30 eq page.pageSize ? 'selected':'' } > 30</option>
        <option value="50" ${50 eq page.pageSize ? 'selected':'' } > 50</option>
        <option value="100" ${100 eq page.pageSize ? 'selected':'' } >100</option>
        <option value="150" ${150 eq page.pageSize ? 'selected':'' } >150</option>
        <option value="200" ${200 eq page.pageSize ? 'selected':'' } >200</option>
        <option value="300" ${300 eq page.pageSize ? 'selected':'' } >300</option>
        <option value="500" ${500 eq page.pageSize ? 'selected':'' } >500</option>
    </select>
    </li>
</ul>
</div>
